var baseInfo=null;
$(function () {
    baseInfo=new BaseInfo();
});
(function(){
    var BaseInfo = window.BaseInfo = function(){
        return new BaseInfo.prototype.init();

    };
    BaseInfo.fn = BaseInfo.prototype = {


        init:function () {
            this.initEvent();
            return this;
        },

        initEvent:function () {
            var that=this;
            debugger
            var sfzgdw=that.getQueryString("sfzgdw");
            $("#J_selectIsSfzgdw").val(sfzgdw);
            var flag=that.getQueryString("flag");
            $("#J_selectIsFlag").val(flag);

        },

        getQueryString:function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = decodeURI(window.location.search).substr(1).match(reg); //匹配目标参数
            if (r != null) return unescape(r[2]); return null; //返回参数值
        }
    };
    BaseInfo.fn.init.prototype = BaseInfo.fn;
})();